package com.otupia.blog.service;

import java.util.List;

import com.otupia.blog.dao.BlogDao;
import com.otupia.blog.model.Blog;

public class BlogSearchServiceSpringImpl implements BlogSearchService
{

	private BlogDao blogDao;
	
	public BlogDao getBlogDao()
	{
		return blogDao;
	}

	public void setBlogDao(BlogDao blogDao)
	{
		this.blogDao = blogDao;
	}

	@Override
	public Blog getBlogById(long id)
	{
		return this.blogDao.findBlogById(id);
	}

	@Override
	public List<Blog> getBlogsByWriterId(long writerId)
	{
		return this.blogDao.findBlogByWriter(writerId);
	}

}
